package com.icoolkj.mall.order.feign;

import com.icoolkj.mall.common.Result;
import com.icoolkj.mall.order.feign.dto.InventoryRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author icoolkj
 * @version 1.0
 * @description
 * @createDate 2025/01/17 18:32
 */
@FeignClient(name = "icoolkj-mall-inventory", path = "/api/inventory")
public interface InventoryServiceFeignClient {

    @PostMapping("/reduce-inventory")
    Result<?> reduceInventory(@RequestBody InventoryRequest inventoryRequest);
}
